package com.fenyin.samples.study.jdk.exception;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;

public class ExceptionCatchTest {
	
	private static final Log log = LogFactory.getLog(ExceptionCatchTest.class);
	
	@Test
	public void testExceptionCatch(){
		try {
			get();
		} catch (Exception e) {
			log.error("Exception 异常必须捕获", e);
		}
	}
	
	
	private void get()throws Exception{
		throw new IllegalAccessException("输入参数异常");
	}
	
}
